package com.ourway.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 飞书部门同步详情
 *
 * @author lwh
 * @date 2021/11/28
 */
@NoArgsConstructor
@Data
public class FeiShuDepartment implements Serializable {


    @JsonProperty("department_id")
    private String departmentId;
    @JsonProperty("i18n_name")
    private I18nNameDTO i18nName;
    @JsonProperty("leader_user_id")
    private String leaderUserId;
    @JsonProperty("member_count")
    private Integer memberCount;
    @JsonProperty("name")
    private String name;
    @JsonProperty("open_department_id")
    private String openDepartmentId;
    @JsonProperty("order")
    private String order;
    @JsonProperty("parent_department_id")
    private String parentDepartmentId;
    @JsonProperty("status")
    private StatusDTO status;

    @NoArgsConstructor
    @Data
    public static class I18nNameDTO {
        @JsonProperty("en_us")
        private String enUs;
        @JsonProperty("ja_jp")
        private String jaJp;
        @JsonProperty("zh_cn")
        private String zhCn;
    }

    @NoArgsConstructor
    @Data
    public static class StatusDTO {
        @JsonProperty("is_deleted")
        private Boolean isDeleted;
    }
}
